package com.TTBook.core.category.model;

import java.io.Serializable;

public class BookCategory implements Serializable {
    private String bookCatId;

    private String catName;

    private String parentCatId;

    private Integer catSerNum;

    private Integer catGrade;

    private String iconPath;

    private String status;

    private static final long serialVersionUID = 1L;

    public String getBookCatId() {
        return bookCatId;
    }

    public void setBookCatId(String bookCatId) {
        this.bookCatId = bookCatId == null ? null : bookCatId.trim();
    }

    public String getCatName() {
        return catName;
    }

    public void setCatName(String catName) {
        this.catName = catName == null ? null : catName.trim();
    }

    public String getParentCatId() {
        return parentCatId;
    }

    public void setParentCatId(String parentCatId) {
        this.parentCatId = parentCatId == null ? null : parentCatId.trim();
    }

    public Integer getCatSerNum() {
        return catSerNum;
    }

    public void setCatSerNum(Integer catSerNum) {
        this.catSerNum = catSerNum;
    }

    public Integer getCatGrade() {
        return catGrade;
    }

    public void setCatGrade(Integer catGrade) {
        this.catGrade = catGrade;
    }

    public String getIconPath() {
        return iconPath;
    }

    public void setIconPath(String iconPath) {
        this.iconPath = iconPath == null ? null : iconPath.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof BookCategory)) {
            return false;
        }
        BookCategory other = (BookCategory) that;
        return this.getBookCatId() == null ? other == null : this.getBookCatId().equals(other.getBookCatId())
            && this.getCatName() == null ? other == null : this.getCatName().equals(other.getCatName())
            && this.getParentCatId() == null ? other == null : this.getParentCatId().equals(other.getParentCatId())
            && this.getCatSerNum() == null ? other == null : this.getCatSerNum().equals(other.getCatSerNum())
            && this.getCatGrade() == null ? other == null : this.getCatGrade().equals(other.getCatGrade())
            && this.getIconPath() == null ? other == null : this.getIconPath().equals(other.getIconPath())
            && this.getStatus() == null ? other == null : this.getStatus().equals(other.getStatus());
    }

    public int hashCode() {
        int hash = 23;
        if (getBookCatId() != null) {
            hash *= getBookCatId().hashCode();
        }
        if (getCatName() != null) {
            hash *= getCatName().hashCode();
        }
        if (getParentCatId() != null) {
            hash *= getParentCatId().hashCode();
        }
        if (getCatSerNum() != null) {
            hash *= getCatSerNum().hashCode();
        }
        if (getCatGrade() != null) {
            hash *= getCatGrade().hashCode();
        }
        if (getIconPath() != null) {
            hash *= getIconPath().hashCode();
        }
        if (getStatus() != null) {
            hash *= getStatus().hashCode();
        }
        return hash;
    }
}